package com.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.entity.pojo.Categories;
import com.entity.pojo.CategoriesRelation;

import java.util.List;

/**
 * <p>
 * 目录关系表 服务类
 * </p>
 *
 * @author chenMo
 * @since 2022-04-11
 */
public interface CategoriesRelationService extends IService<CategoriesRelation> {

    List<Categories> getCanBeAddedNextCategoryList(Integer currentCategoryId,Integer courseId);

    boolean deleteCategoryRelation(Integer categoryId,Integer nextCategoryId);

    boolean addCategoryRelation(CategoriesRelation categoryRelation);
}
